package com.example.util;

import java.util.Date;

import org.apache.commons.lang3.time.DateFormatUtils;

public final class DeviceFactory {

	public static String createDeviceId(){
		return DateFormatUtils.format(new Date(), "yyyyMMddHHmmssS");
	}
	
	/**
	 * 生成随机手机号
	 * @return
	 */
	public static String createPhoneNumber(){
		return "120" + DateFormatUtils.format(new Date(), "HHmmssSSS");
	}
	
	private DeviceFactory(){}
}
